package com.yic.module.device.controller.admin.faulthandle.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import static com.yic.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 设备报修处理 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class FaultHandleBaseVO {

    @Schema(description = "报修工单", requiredMode = Schema.RequiredMode.REQUIRED, example = "9510")
    @NotNull(message = "报修工单不能为空")
    private Long faultId;

    @Schema(description = "故障类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "故障类型不能为空")
    private Integer type;

    @Schema(description = "故障等级", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "故障等级不能为空")
    private Integer grade;

    @Schema(description = "故障原因", requiredMode = Schema.RequiredMode.REQUIRED, example = "不对")
    @NotNull(message = "故障原因不能为空")
    private String reason;

    @Schema(description = "处理方法", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "处理方法不能为空")
    private String handleMethod;

    @Schema(description = "处理人")
    private Long handleUser;

}
